<?php
	require_once('msc-load.php');

	
	$IdToDelete = $_POST['id'];

	global $db;
	
	$Query = 'DELETE FROM RESERVATIONS WHERE ID ='.$IdToDelete;
	$delete = $db->query($Query); 
	
	if($delete) { 
		header('Location: ../user-profile.php');	// delete ok statement
	} 
	
	else {
		header('Location: ../user-profile.php?delete=failed');		// delete failed see url!!! 
	}
	

?>